#include "intPrimaryExpression.h"
#include <sstream>
using namespace std;
std::string IntPrimaryExpression::toString()
{
   stringstream ss;//create a stringstream
   ss << value;//add number to the stream
   return ss.str();//return a string with the contents of the stream;
}

IntPrimaryExpression::IntPrimaryExpression(int val)
{
	value = val;
}

IntPrimaryExpression::IntPrimaryExpression(const IntPrimaryExpression & other)
{
    value = other.value;
}

IntPrimaryExpression::~IntPrimaryExpression()
{

}

Expression * IntPrimaryExpression::clone()
{
    return new IntPrimaryExpression(*this);
}

